Azure CosmosDB
Overview
Azure Cosmos DB is a distributed, multi-model database-as-a-service.It exposes data through several API flavors, allowing developers to choose the most suitable model for their application. It supports various data models, including relational, document, vector, key-value, graph, and table.
MongoDB API
The MongoDB API allows you to model data using document-based structures. It provides general compatibility with existing MongoDB applications and tools. Developers can leverage MongoDB queries and indexes within Cosmos DB.
Refer to the MongoDB API tutorial which uses core MongoDB API querying concepts for sample MongoDB API interactions.
There is also a document describing Azure CosmosDB semantic searching.
CosmosDB Interaction Flavors
As a multi-model database CosmosDB has several interaction models as described below.
API Flavor | Description |
---|---|
MongoDB API | The MongoDB document style of data management. |
Cassandra | The Cassandra API supports the column-family data model. |
Gremlin | The Gremlin API is designed for graph data modeling.It allows you to create and query graphs using the Gremlin / Cypher query language. It is ideal for applications that require complex relationships and traversals. |
SQL | The SQL API stores data in a document format, which is schema-agnostic. You can query the data using a SQL-like language that’s designed for rich querying over documents. It supports JSON data, allowing you to seamlessly work with the hierarchical data structures common in NoSQL databases. |
Table | The Table API is designed for storing simple key-value data.It caters to users familiar with Azure Table storage, offering premium features for this use case. |
Qarbine is likely to release support for these interaction options in the near future. Contact Qarbine for early access invitations.